import {
  request,
} from "@rabbit.do/rabbit";

// 获取三级联动的数据
export const getTreeData = (data) => request({
  url: '/swan/product/b/catalog/product/tree',
  data,
});

// 获取产品、物料、药品、套餐的数据
export const getAllData = (data) => request({
  url: '/swan/product/catalog/find',
  data,
});

// 获取树的数据
export const getTreeDatas = (data) => request({
  url: '/swan/product/b/catalog/tree',
  data,
});

// 产品上下架
export const setProductDatas = (data) => request({
  url: '/swan/product/sell/status/set',
  data,
});
